//get block elem
$(function(){
  let $block = $('#main');

  //event hash router
  window.onhashchange = function(){
    //get color -> get hash url
    let color = window.location.hash.substring(2,location.hash.length);

    console.log(window.location);
    console.log(color);
    //set color
    $block.css({
      'background-color':color
    })
  }
})
